<script setup>
import { RouterView } from 'vue-router'
import { storeToRefs } from 'pinia'
import appGlobalStore from '@/store/modules/app'
const appStore = appGlobalStore()
const { locale, dateLocale } = storeToRefs(appStore)

</script>

<template>
  <n-config-provider :locale="locale" :date-locale="dateLocale">
    <router-view v-slot="{ Component }">
      <Transition name="page_animate">
          <component :is="Component" />
      </Transition>
    </router-view>
  </n-config-provider>
</template>

<style scoped>
.page_animate-enter-active {
  animation: zoomInUp 0.5s;
}

.page_animate-leave-active {
  animation: zoomOutDown 0.5s;
}
</style>
